package cn.mymall.vo.order;

import cn.mymall.entity.TradeOrder;
import lombok.Data;

import javax.naming.ldap.PagedResultsControl;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

@Data
public class MallOrderSimpleVo {
    private Integer id;
    private String tradeno;
    private BigDecimal orderTotalAmount;
    private String payStatus;
    private String orderStatus;
    private String orderStatusText;
    private String expressStatusText;
    private Timestamp addTime;
    private String productNames;
    private String skuNames;
    private Integer sumQty;
    private Integer productQty;
    private String logo;
    public MallOrderSimpleVo(TradeOrder order){
        this.id = order.getId();
        this.tradeno = order.getTradeno();
        this.orderStatus = order.getOrderStatus();
        this.orderTotalAmount = order.getOrderAmount();
        this.payStatus = order.getPayStatus();
        this.addTime = order.getAddTime();
        this.orderStatusText = order.gainOrderStatusText();
    }

}
